package com.sugon.modules.sparepart.model.vo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 备件领料明细参数VO
 * 多用于OA更新备件领用明细的实际领用数
 *
 * @author YuXD
 * @since 2022-06-08
 */
@Data
public class SparepartMaterialItemParam implements Serializable {

    @NotBlank(message = "领料明细必选！")
    private String id;

    @Min(value = 1L, message = "实发数不得小于1！")
    @NotNull(message = "实发数必填！")
    private Integer actualNum;

}
